package cn.store.dao;

import cn.store.domain.Category;

import java.sql.SQLException;
import java.util.List;

public interface CategoryDao {

	List<Category> getAllCats()throws Exception;

	Category getCatById(String cid)throws Exception;

	void addCategory(Category c)throws Exception;

	void updateCatById(Category c) throws SQLException;

	void deleteCategory(String cid) throws SQLException;
}
